package org.example.springaop.controller;

import org.example.springaop.aspect.MyAspect;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/user")
@RestController
public class UserController {
    @MyAspect
    @RequestMapping("u1")
    public String u1() {
        return "u1";
    }

    @RequestMapping("u2")
    public String u2() {
        return "u2";
    }
}
